<template>
  <div>
    <div class="erji">
      <router-link tag="div" to="/home/pop" class="fad">
        <span>{{ left }}</span>
      </router-link>

      <router-link tag="div" to="/home/new" class="new">
        <span>{{ center }}</span>
      </router-link>

      <router-link tag="div" to="/home/sell" class="select">
        <span>{{ right }}</span>
      </router-link>
    </div>

    <div class="wrapper">
      <keep-alive>
        <router-view></router-view>
      </keep-alive>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    left: String,
    center: String,
    right: String
  }
}
</script>

<style>
.erji {
  background-color: #fff;
  display: flex;
  height: 30px;
  line-height: 30px;
  font-size: 16px;
}
.fad,
.new,
.select {
  flex: 1;
  text-align: center;
}
.router-link-active {
  color: red;
}
.router-link-active span {
  border-bottom: 3px solid orange;
  padding: 5px;
}
</style>
